/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package com.perficient.ibuzz.util;

import com.google.api.client.util.DateTime;
import static com.perficient.ibuzz.util.Constants.*;

import com.perficient.ibuzz.service.BuzzActivity;
import com.perficient.ibuzz.service.BuzzActivityFeed;
import com.perficient.ibuzz.service.BuzzActor;
import com.perficient.ibuzz.service.BuzzObject;
import java.util.ArrayList;
import java.util.List;

/**
 *
 * @author Trainning
 */
public class BuzzActivityFeedBuilder {

    public BuzzActivityFeed build() {
        BuzzActivityFeed feed = new BuzzActivityFeed();
        List<BuzzActivity> entries = new ArrayList<BuzzActivity>();
        BuzzActivity entry = new BuzzActivity();
        entry.published = new DateTime(NOW);
        entry.updated = new DateTime(NOW);
        BuzzActor author = new BuzzActor();
        author.name = AUTHOR;
        entry.actor = author;
        BuzzObject content = new BuzzObject();
        content.content = TEXT;
        entry.object = content;
        entries.add(entry);
        feed.items = entries;
        return feed;
    }
}
